//
//	  FileTester.java
//
//	  Copyright (c) 2011 <John Lawniczak>
//	  jlawniczak340license@gmail.com
//
//    This file is part of CS102_Assignment2.
//
//    CS102_Assignment2 is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, version 3 of the License.
//
//    CS102_Assignment2 is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with CS102_Assignment2.  If not, see <http://www.gnu.org/licenses/>.
//

public class FileTester {

	
	public static void main(String[] args) {
		File file = new File("file.txt");
		//file.addLine("hello 6th line", 6);
		file.addFirstLine("hello 1st line");
		file.addEndLine("hello 2nd line");
		file.addEndLine("hello 4th line");
		file.addLine("hello 3rd line", 3);
		file.addEndLine("hello 5th line");
		file.addLine("hello 7th line", 7);
		file.addLine("hello 14th line", 14);
		file.addLine("hello 10th line", 10);

		System.out.println(file);
		
		//file.removeFirstLine();
		//file.removeLastLine();
		
		//file.removeLine(1);
		file.replaceLine("hello 9th line", 9);
		System.out.println("removing the last line");
		System.out.println("---------------------");
		System.out.println(file);
		file.closeFile();
	}

}
